NUMDIV

This program will factor a positive integer and determine the number of possible divisors. The user inputs a positive integer. The program outputs a list of the factors, L(1), L(3), etc, are the factors while L(2), L(4), etc, are the exponents on the previous factor. For example, if N = 100, then the program will output {2, 2, 5, 2} implying that the factors are 2 and 5 while the power on 2 is 2 and the power on 5 is 2. This program will also produce the number of divisors. This program is in part from the textbook: Aufmann, Lockwood, Nation and Clegg. Mathematical Excursions, 2nd Ed. Houghton-Mifflin, 2007.  Enjoy!